<%--
  Created by IntelliJ IDEA.
  User: guzhe
  Date: 2020/12/11
  Time: 10:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>网站访问次数统计</title>
</head>
<body>
<%
Object count=session.getAttribute("count");
if(count==null){
    count=1;
    session.setAttribute("count",count);
}else{
   count=(Integer)count+1;
   session.setAttribute("count",count);
}
/*
范围大小
* page<request<session<application
* */
%>
<h1>你是本网站第<%=count%>位访问用户，谢谢！</h1>
</body>
</html>
